<html>
<head>
    <title>积分商城</title>
    {{--@yield('title')--}}
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="{{ asset('bootstrap/css/bootstrap.min.css') }}">
    <link rel="stylesheet" href="{{ asset('client/css/index.css') }}">
    <script src="http://libs.baidu.com/jquery/1.9.1/jquery.min.js"></script>
    <script src="{{ asset('client/layer/layer.js') }}"></script>
    <script src="{{ asset('client/js/play.js') }}"></script>
    @yield('link')
</head>
<body style="font-family: 黑体;">

<!-- --顶部-- -->
<div class="content">
        <div class="top">
            <!-- <div class="tou"> -->
                <div class="tou-left">
                    <a href="{{ url('/') }}">
                        <img src="{{ asset('images/logo.png') }}" width="180px">
                        {{--&nbsp;&nbsp;保祥云商城--}}
                    </a>
                </div>
                
                <div class="tou-zhong">
                    <ul id="hr">
                        <li>
                            <a href="{{ url('/') }}" onmouseover="show(0)">兑换首页</a>
                            <span class="one"></span>
                        </li>
                        <li>
                            <a href="{{ url('client/query') }}" onmouseover="show(1)">兑换查询</a>
                            <span></span>
                        </li>
                        <li>
                            <a href="{{ url('client/rule') }}" onmouseover="show(2)">兑换说明</a>
                            <span></span>
                        </li>
                    </ul>
                </div>
                @if(empty(Session::get('phone')))
                    <div class="tou-right">
                        <a href="{{ url('client/toLogin') }}" class="btn btn-warning btn-xs">登&nbsp;&nbsp;录</a> 
                        
                        <a href="{{ url('client/toRegister') }}" class="btn btn-warning btn-xs">注&nbsp;&nbsp;册</a>
                    </div>
                @else
                    <div class="tou-right1">
                        
                            @if(empty(Session::get('username')))
                                <b><a href="{{ url('client/user') }}">{{ Session::get('car_num') }}</a> </b>|
                                <b>积分:{{ App\Users::find(Session::get('uid'))['integral'] }}</b>
                            @else
                                <b><a href="{{ url('client/user') }}">{{ Session::get('username') }}</a></b> |
                                <b>积分:{{ App\Users::find(Session::get('uid'))['integral'] }}</b>
                            @endif
                        
                        | <a href="{{ url('client/showCart/'.Session::get('uid')) }}">我的购物车</a>
                        | <a href="{{ url('client/logout') }}">注销</a>
                    </div>
                @endif
            <!-- </div> -->
        
        </div>
    <!-- </div> -->
<!-- --顶部 end-- -->

<!-- --bannner-- -->

    <div class="banner">
        <img src="{{ asset("client/image/banner.jpg") }}">
    </div>

<!-- --banner end-- -->

    @yield('content')

<!-- --版权区-- -->

    <div class="bottom">
        <div class="bottom-top"></div>
        <div class="bottom-xia">
            <strong>Copyright &copy; <a href="{{ url('/') }}">保祥·云商城.</a> </strong>
            All right reserved.<span style="margin-left:20px;">技术支持：
            <strong><a href="{{ url('/') }}" target="_blank">保祥·云商城</a></strong></span>
        </div>
    </div>
</div>
<!-- --版权区 end-- -->

{{--<script src="{{ asset('client/js/play.js') }}" type="text/javascript"></script>--}}
<script>
    // --顶部--
    function show(num){

        var aCT=document.getElementById("hr").getElementsByTagName("a");
        var spanCT=document.getElementById("hr").getElementsByTagName("span");
        for(var i=0;i<aCT.length;i++){
            if(num === i){
                spanCT[num].style.display="block";
            }else{
                spanCT[i].style.display="none";
            }
        }
    }
    // --顶部 end--
</script>

</body>
</html>